home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Alles Voor Internet / Tout Pour Internet
/
alles voor internet.iso
/
MacInternet™
/
Archive-tools
/
LZSS Res ƒ
/
LZSSLib.h
< prev
next >
Wrap
Text File
|
1993-06-07
|
931b
|
32 lines
/*
Copyright © 1994 Demos, inc.
Written by: Dmitry Boldyrev
*/
#ifndef __LZSSLib__
#define __LZSSLib__
/* structure of stored data in a compressed resource:
---------------------------- Type ----- Byte(s) ---
• Compressed? Boolean 1
• Resource Type ResType 4
• Original size Size 4
---------------------------------------------------
total: 8 bytes header
Compression methods available are:
*/
// “CompressResource” takes two arguments, srcHandle which can be obtained
// from GetResource(), and rType is the original resource type
Handle CompressResource(Handle srcHandle, ResType rType, ProcPtr ProgressProc);
// “GetCResource” takes two arguments rType and rID (acts just like GetResource)
Handle GetCResource(ResType rType, short rID);
// “GetCResource” takes no arguments and returns the Compress type error
// if no error occured it returns noErr code.
OSErr CompressError();
#endif